<script setup lang="ts">
interface Props {
  title: string
  description: string
  gradient: string
  imageUrl: string
}

defineProps<Props>()
</script>

<template>
  <div class="featured-card" :style="{ background: gradient }">
    <div class="card-content">
      <div class="text-content">
        <h3 class="featured-card-title">{{ title }}</h3>
        <p class="featured-card-description">{{ description }}</p>
      </div>
      <img :src="imageUrl" class="card-image" alt="">
    </div>
  </div>
</template>

<style scoped>
.featured-card {
  border-radius: 8px;
  padding: 20px 16px 16px 16px;
  color: white;
  height: 250px;
  cursor: pointer;
  transition: transform 0.2s;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.text-content {
  z-index: 1;
}

.card-image {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 160px;
  height: 160px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.featured-card:hover .card-image {
  transform: scale(1.1);
}

.featured-card-title {
  font-size: 16px;
  color: white;
  margin-bottom: 8px;
}

.featured-card-description {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.5;
}
</style> 